# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname=batctl
pkgver=2024.2
pkgrel=0
pkgdesc="B.A.T.M.A.N. advanced control and management tool"
url="https://www.open-mesh.org/"
arch="all"
license="GPL-2.0-only AND MIT"
makedepends="libnl3-dev linux-headers"
subpackages="$pkgname-doc"
source="https://downloads.open-mesh.org/batman/releases/batman-adv-$pkgver/batctl-$pkgver.tar.gz"
options="!check" # No test suite.

build() {
	make PREFIX=/usr
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
3cba5de2f9a425c0a08d41c40f5bd061a7d20f3fbdad587addccd50f1b7bd462b39605dae7996960ba03cc035388cba2412dee24da6e79e19dfffe82641094e6  batctl-2024.2.tar.gz
"
